﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Progam2
    {
        public void Kll(int int1, int int2)




        {
            Console.WriteLine("两个整数和为");
            Console.WriteLine("结果为" + (int1 + int2));
        }
        public void Kll(double d1, double d2)
        {
            Console.WriteLine("两个小数相加");
            Console.WriteLine("结果是" + (d1 + d2));
        }




        public void Kll(string t1, string t2)
        {



            Console.WriteLine("两个字符串和为");
            Console.WriteLine("结果是" + ("d1" + "t2"));
        }
        public void Kll(int num)
        {
            int x = 1;
            for (int i = 0; i < num; i++)
            {
                x = x + i;
            }
            Console.WriteLine("1到" + num + "的总数为" + x);
        }
    }
}
